<template>
	<view class="s-loadmore">
		<view :class="['s-loading-'+index, (index==3 && type)?'s-loading-'+type:'']"></view>
		<view class="s-loadmore-tips">{{text}}</view>
	</view>
</template>

<script>
	export default {
		name: "sLoadmore",
		props: {
			//显示文本
			text: {
				type: String,
				default: "正在加载..."
			},
			//loading 样式 ：1,2,3
			index: {
				type: Number,
				default: 1
			},
			//颜色设置，只有index=3时生效：primary，red，orange，green
			type: {
				type: String,
				default: ""
			}
		}
	}
</script>
<style lang="scss" scoped>
@import 's-loadmore.scss';
</style>
